import request from '/@/utils/request';
export function adminApi() {
	return {
		index: (params) => {
			return request({
				url: '/auth/admin/index',
				method: 'get',
				params
			});
		},
		add: (data) => {
			return request({
				url: '/auth/admin/add',
				method: 'post',
				data,
			});
		},
        edit: (data) => {
			return request({
				url: '/auth/admin/edit',
				method: 'post',
				data,
			});
		},
        del: (data) => {
			return request({
				url: '/auth/admin/del',
				method: 'post',
				data,
			});
		},
	};
}